home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-01-01 | 18.6 KB | 374 lines | [TEXT/MPS ] |
- //# Copyright: © 1994 - 1996 by Apple Computer, Inc., all rights reserved.
-
- #ifndef _STDDEFS_
- #define _STDDEFS_
-
- #ifndef _ODTYPESM_
- #include "ODTypesM.idl"
- #endif
-
- /*
- The C/C++ and Rez emitters are applied to this file.
- */
-
- #if defined(__SOMIDL__) && defined(EMIT_GLOBAL_CONSTANTS)
- #pragma somemittypes on
- #endif
-
- //#--------------------------------------------------------------------------------
- //# Prefixes
- //#--------------------------------------------------------------------------------
-
- const ODISOStr kODISOPrefix = "+//ISO 9070/ANSI::113722::US::CI LABS::";
-
- //#--------------------------------------------------------------------------------
- //# Miscellaneous
- //#--------------------------------------------------------------------------------
-
- const long kODNULL = 0;
-
- const ODBoolean kODFalse = 0;
- const ODBoolean kODTrue = 1;
-
- const ODULong kODNoWait = 0; // For the wait parameter to Lock()
-
- //#--------------------------------------------------------------------------------
- //# Tokens
- //#--------------------------------------------------------------------------------
-
- const ODTypeToken kODNullTypeToken = 0;
-
- //#--------------------------------------------------------------------------------
- //# IDs
- //#--------------------------------------------------------------------------------
-
- const ODID kODNULLID = 0;
- const ODID kODIDAll = 0;
- const ODID kODIndexAll = 0;
- const ODID kODIDWild = 0;
-
- //#--------------------------------------------------------------------------------
- //# Object Types
- //#--------------------------------------------------------------------------------
-
- const ODObjectType kODPartObject = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:ObjectType:Part";
- const ODObjectType kODFrameObject = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:ObjectType:Frame";
- const ODObjectType kODNonPersistentFrameObject = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:ObjectType:NonPersistentFrame";
-
- //#--------------------------------------------------------------------------------
- //# NameSpaces
- //#--------------------------------------------------------------------------------
-
- const ODISOStr kODContainerSuite = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:NameSpace:ContainerSuite";
- const ODISOStr kODKind = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:NameSpace:KindCategories";
- const ODISOStr kODEditorKinds = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:NameSpace:EditorKinds";
- const ODISOStr kODViewer = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:NameSpace:Viewers";
- const ODISOStr kODKindOldMacOSType = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:NameSpace:KindOldMacOSType";
- const ODISOStr kODEditorPlatformKind = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:NameSpace:EditorPlatformKind";
- const ODISOStr kODEditorPlatformSignature= "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:NameSpace:EditorPlatformSignature";
- const ODISOStr kODEditorHelpFile = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:NameSpace:EditorHelpFile";
-
- const ODISOStr kODSysPrefContainerSuites= "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:NameSpace:SysPrefContainerSuites";
- const ODISOStr kODSysPrefEditorKinds = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:NameSpace:SysPrefEditorKinds";
- const ODISOStr kODSysPrefEditorCategories = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:NameSpace:SysPrefEditorCategories";
-
- const ODISOStr kODEditorUserString = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:NameSpace:EditorUserString";
- const ODISOStr kODKindUserString = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:NameSpace:KindUserString";
- const ODISOStr kODCategoryUserString = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:NameSpace:CategoryUserString";
-
- const ODISOStr kODWrongCUPEditor = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:NameSpace:WrongCUPEditor";
- const ODISOStr kODFileFromEditor = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:NameSpace:FileFromEditor";
-
- const ODOSType kODNameMappings = 'nmap';
- const ODISOStr kODSimpleViewer = "";
-
- const ODUByte kODPlatformKindFileChar1 = '#';
-
- //#--------------------------------------------------------------------------------
- //# Editors
- //#--------------------------------------------------------------------------------
-
- const ODEditor kODNoEditor = kODNULL;
-
- const ODISOStr kODBlackBoxHandlerOfLastResort = "Apple::NoPart";
-
- const ODISOStr kODViewerOfLastResortKind = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Kind:ViewerOfLastResortKind";
-
- //#--------------------------------------------------------------------------------
- //# Categories
- //#--------------------------------------------------------------------------------
-
- const ODISOStr kODCategoryPlainText = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:Text:Plain";
- const ODISOStr kODCategoryStyledText = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:Text:Styled";
- const ODISOStr kODCategoryDrawing = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:Drawing";
- const ODISOStr kODCategory3DGraphic = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:3DGraphic";
- const ODISOStr kODCategoryPainting = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:Painting";
- const ODISOStr kODCategoryMovie = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:Movie";
- const ODISOStr kODCategorySampledSound = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:SampledSound";
- const ODISOStr kODCategoryStructuredSound = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:StructuredSound";
- const ODISOStr kODCategoryChart = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:Chart";
- const ODISOStr kODCategoryFormula = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:Formula";
- const ODISOStr kODCategorySpreadsheet = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:Spreadsheet";
- const ODISOStr kODCategoryTable = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:Table";
- const ODISOStr kODCategoryDatabase = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:Database";
- const ODISOStr kODCategoryQuery = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:Query";
- const ODISOStr kODCategoryConnection = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:Connection";
- const ODISOStr kODCategoryScript = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:Script";
- const ODISOStr kODCategoryOutline = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:Outline";
- const ODISOStr kODCategoryPageLayout = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:PageLayout";
- const ODISOStr kODCategoryPresentation = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:Presentation";
- const ODISOStr kODCategoryCalendar = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:Calendar";
- const ODISOStr kODCategoryForm = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:Form";
- const ODISOStr kODCategoryExecutable = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:Executable";
- const ODISOStr kODCategoryCompressed = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:Compressed";
- const ODISOStr kODCategoryControlPanel = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:ControlPanel";
- const ODISOStr kODCategoryControl = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:Control";
- const ODISOStr kODCategoryPersonalInfo = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:PersonalInfo";
- const ODISOStr kODCategorySpace = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:Space";
- const ODISOStr kODCategoryProject = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:Project";
- const ODISOStr kODCategorySignature = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:Signature";
- const ODISOStr kODCategoryKey = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:Key";
- const ODISOStr kODCategoryUtility = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:Utility";
- const ODISOStr kODCategoryMailingLabel = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:MailingLabel";
- const ODISOStr kODCategoryLocator = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:Locator";
- const ODISOStr kODCategoryPrinter = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:Printer";
-
- const ODISOStr kODCategoryTime = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:Time";
- const ODISOStr kODCategoryArchive = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:Archive";
- const ODISOStr kODCategoryMissingEditorViewer = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Category:Missing Editor/Viewer";
-
- //#--------------------------------------------------------------------------------
- //# Resource types
- //#--------------------------------------------------------------------------------
-
- const short kODIsMacOSTypeID = 1; /* Mac OSType */
- const short kODIsINTLTextID = 2; /* International text */
- const short kODIsAnISOStringID = 3; /* ISOString */
- const short kODIsAnISOStringListID = 4; /* ISOString List*/
- const short kODIsPltfmTypeSpacID = 5; /* PlatformTypeSpace */
- const short kODIsHelpFileNameID = 6; /* AppleGuide file on the Mac */
-
- const short kODPaletteWDEFID = 128; /* Windoid WDEF */
-
- //#--------------------------------------------------------------------------------
- //# PlatformTypeSpace
- //#--------------------------------------------------------------------------------
-
- const ODULong kODPlatformFileType = 1;
- const ODULong kODPlatformDataType = 2;
-
- //#--------------------------------------------------------------------------------
- //# International text format constants
- //#--------------------------------------------------------------------------------
-
- const short kODISO10646_1993BaseEncoding = 0; // UCS
- const ODITextFormat kODTraditionalMacText = 0;
-
- //#--------------------------------------------------------------------------------
- //# Semantic events
- //#--------------------------------------------------------------------------------
-
- interface ODPart;
-
- const ODPart kODAppShell = 0;
-
- //#--------------------------------------------------------------------------------
- //# View Type Sizes
- //#--------------------------------------------------------------------------------
-
- const short kODTinyIconSize = 12; // 12x12 pixels
- const short kODSmallIconSize = 16; // 16x16 pixels
- const short kODLargeIconSize = 32; // 32x32 pixels
- const short kODThumbnailSize = 64; // 64x64 pixels
-
- //#--------------------------------------------------------------------------------
- //# Imaging
- //#--------------------------------------------------------------------------------
-
- /* Graphics systems are of course platform dependent, but their numeric IDs
- should be globally registered to avoid overlaps; otherwise confusion may
- occur when documents are moved between platforms, or objects on different
- platforms attempt to communicate via DSOM. */
-
- const ODGraphicsSystem kODNoGraphicsSystem = 0;
- const ODGraphicsSystem kODQuickDraw = 1; // Macintosh QuickDraw graphics system
- const ODGraphicsSystem kODQuickDrawGX = 2; // Macintosh QuickDraw GX graphics system
-
- const ODTransformType kODIdentityXform = 0; // Identity (no-op) transform
- const ODTransformType kODTranslateXform = 1; // Pure translation/offset
- const ODTransformType kODScaleXform = 2; // Pure scale, no offset
- const ODTransformType kODScaleTranslateXform = 3; // Scale and offset
- const ODTransformType kODLinearXform = 4; // Scale/rotate/skew, but no offset
- const ODTransformType kODLinearTranslateXform= 5; // Linear as above, but with offset
- const ODTransformType kODPerspectiveXform = 6; // Perspective: m[0][2]!=0 or m[1][2]!=0
-
- const ODTransformType kODUnknownXform =-1; // Type not known yet [internal use only]
- const ODTransformType kODInvalidXform = 7; // Bad matrix [internal use only]
-
- //#--------------------------------------------------------------------------------
- //# ViewTypes and Presentations
- //#--------------------------------------------------------------------------------
-
- const ODType kODViewAsSmallIcon = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:ViewType:SmallIcon";
- const ODType kODViewAsLargeIcon = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:ViewType:LargeIcon";
- const ODType kODViewAsThumbnail = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:ViewType:Thumbnail";
- const ODType kODViewAsFrame = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:ViewType:Frame";
-
- const ODType kODPresDefault = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Presentation:Default";
-
- //#--------------------------------------------------------------------------------
- //# Drag And Drop
- //#--------------------------------------------------------------------------------
-
- const ODULong kODDragIsInSourceFrame = 0x00000001;
- const ODULong kODDragIsInSourcePart = 0x00000002;
-
- const ODULong kODDropIsInSourceFrame = kODDragIsInSourceFrame;
- const ODULong kODDropIsInSourcePart = kODDragIsInSourcePart;
- const ODULong kODDropIsMove = 0x00000004;
- const ODULong kODDropIsCopy = 0x00000008;
- const ODULong kODDropIsPasteAs = 0x00000010;
-
- //#--------------------------------------------------------------------------------
- //# Interchange
- //#--------------------------------------------------------------------------------
-
- const ODType kODDragImageRegionHandle = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc::DragImage:RegionHandle";
- const ODValueType kODHFSPromise = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc::Type:HFSPromise";
- const ODValueType kODTypeAll = kODNULL;
-
- const ODUpdateID kODUnknownUpdate = 0;
-
- const ODLinkUpdateResult kODLinkUpdateSuspend= 0;
- const ODLinkUpdateResult kODLinkUpdateStop = 1;
- const ODLinkUpdateResult kODLinkUpdateContinue = 2;
-
- const ODPasteAsMergeSetting kODPasteAsMerge = 1;
- const ODPasteAsMergeSetting kODPasteAsEmbed = 3;
- const ODPasteAsMergeSetting kODPasteAsMergeOnly = 0;
- const ODPasteAsMergeSetting kODPasteAsEmbedOnly = 2;
-
- //#--------------------------------------------------------------------------------
- //# For ODStorageUnit
- //#--------------------------------------------------------------------------------
-
- const ODStorageUnitKey kODNULLKey = 0;
-
- const ODULong kODPosUndefined = 0xFFFFFFFF;
- const ODULong kODPosSame = 0x00;
- const ODULong kODPosAll = 1;
- const ODULong kODPosFirstSib = 2;
- const ODULong kODPosLastSib = 3;
- const ODULong kODPosNextSib = 4;
- const ODULong kODPosPrevSib = 5;
- const ODULong kODPosFirstBelow = 6;
- const ODULong kODPosLastBelow = 7;
- const ODULong kODPosFirstAbove = 8;
- const ODULong kODPosLastAbove = 9;
- const ODULong kODPosReserved11 = 10;
- const ODULong kODPosReserved12 = 11;
- const ODULong kODPosReserved13 = 12;
- const ODULong kODPosReserved14 = 13;
- const ODULong kODPosReserved15 = 14;
- const ODULong kODPosMWrap = 0x10;
- const ODULong kODPosTop = 0x20;
-
- //#--------------------------------------------------------------------------------
- //# For ODDocument
- //#--------------------------------------------------------------------------------
-
- const ODDocumentID kODDefaultDocument = 1;
-
- const ODContainerType kODDefaultFileContainer = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:ContainerType:File";
- const ODContainerType kODDefaultMemoryContainer = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:ContainerType:Memory";
-
- const ODContainerType kODBentoFileContainer = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Bento Container Suite:ContainerType:File";
- const ODContainerType kODBentoMemoryContainer = "+//ISO 9070/ANSI::113722::US::CI LABS::OpenDoc:Bento Container Suite:ContainerType:Memory";
-
-
- //#--------------------------------------------------------------------------------
- //# Events
- //#--------------------------------------------------------------------------------
-
- const ODSShort kODEvtNull = 0; // 0-15 copied from Macintosh: <Events.h>
- const ODSShort kODEvtMouseDown = 1;
- const ODSShort kODEvtMouseUp = 2;
- const ODSShort kODEvtKeyDown = 3;
- const ODSShort kODEvtKeyUp = 4;
- const ODSShort kODEvtAutoKey = 5;
- const ODSShort kODEvtUpdate = 6;
- const ODSShort kODEvtDisk = 7;
- const ODSShort kODEvtActivate = 8;
- const ODSShort kODEvtOS = 15;
- const ODSShort kODEvtBGMouseDown = 16; // Mouse-down while in background [special]
-
- const ODSShort kODEvtMenu = 98;
- const ODSShort kODEvtMouseDownEmbedded = 99;
- // A mouse-down in an embedded frame, or the active border
- // Sent to the container
- const ODSShort kODEvtMouseUpEmbedded = 100;
- // A mouse-up in an embedded frame, or the active border
- // Sent to the container
- const ODSShort kODEvtMouseDownBorder = 101;
- // A mouse-down in an embedded frame, or the active border
- // Sent to the container
- const ODSShort kODEvtMouseUpBorder = 102;
- // A mouse-up in an embedded frame, or the active border
- // Sent to the container
- const ODSShort kODEvtWindow = 103;
- // Used to offer events in title bar to root part
- const ODSShort kODEvtMouseEnter = 104;
- const ODSShort kODEvtMouseWithin = 105;
- const ODSShort kODEvtMouseLeave = 106;
- const ODSShort kODEvtBGMouseDownEmbedded = 107;
- // A mouse-down in an embedded frame, when process is inactive
- // Sent to the container
- const ODSShort kODEvtExit = 108; // Dispatched immediately before session is destructed.
-
-
- const ODSShort kODMDInDesk = 0; // TÇ: 0-8 copied from Macintosh: <Windows.h>
- const ODSShort kODMDInMenuBar = 1;
- const ODSShort kODMDInSysWindow = 2;
- const ODSShort kODMDInContent = 3;
- const ODSShort kODMDInDrag = 4;
- const ODSShort kODMDInGrow = 5;
- const ODSShort kODMDInGoAway = 6;
- const ODSShort kODMDInZoomIn = 7;
- const ODSShort kODMDInZoomOut = 8;
-
-
- //#--------------------------------------------------------------------------------
- //# Windows
- //#--------------------------------------------------------------------------------
-
- const ODWindowLayer kODWinLayerDialog = 0x0020;
- const ODWindowLayer kODWinLayerFloating = 0x0040;
- const ODWindowLayer kODWinLayerDocument = 0x0060;
-
-
- //#--------------------------------------------------------------------------------
- //# Shell
- //#--------------------------------------------------------------------------------
-
- const ODOSType kODShellSignature = 'odtm';
- // TÇ: Dependent files where you have to hand copy this constant:
- // OpenDoc™ PPC π, OpenDoc™ 68K π, OpenDocX.mak
- //
- // NOTE: This constant needs to be the same as the "Creator" in the
- // OpenDoc™ PPC π and OpenDoc™ 68K π project file preferences dialog, project pane
- // Also, make sure that the "SetFile -c " statements which are immediately
- // after the "MergeFragment" statments in OpenDocX.mak also have the same constant
- // e.g.
- // SetFile -c odtm "{ODBinaryDir}OpenDoc™"
-
- #if defined(__SOMIDL__) && defined(EMIT_GLOBAL_CONSTANTS)
- #pragma somemittypes off
- #endif
-
- module OpenDoc_StdDefs
- {
- const string OpenDoc_StdDefs_Version = "1.2.";
- };
-
- #endif //# _STDDEFS_
-